package com.zmn.oms.services.interfaces.callrecord;

import com.zmn.oms.model.entity.callrecord.OrderCallRecord;
import com.zmn.oms.model.entity.comment.OrderComment;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * 类描述：通话记录
 *
 * @author SongWeidong
 * @date 2020/7/29 18:01
 */

public interface OrderCallRecordService {

    /**
     * 通过主键查询
     * @param callRecordId
     * @return
     */
    OrderCallRecord findOrderRecordByKey(Long callRecordId);

    /**
     * 查询首次通话开始时间
     *
     * @param orderId 订单id
     * @return {@link Date}
     */
    Date findFirstStartTime(Long orderId);

    /**
     * 通过orderId查询通话记录
     * @param orderId
     * @return
     */
    List<OrderCallRecord> listOrderCallRecordByOrderId(Long orderId);

    /**
     * 保存通话记录
     * @param orderCallRecord
     * @return
     */
    void insertOrderCallRecord(OrderCallRecord orderCallRecord);

    /**
     * 批量插入通话记录
     * @param orderCallRecordList
     * @return
     */
    void insertOrderCallRecordList(List<OrderCallRecord> orderCallRecordList);
}
